#! /usr/bin/env python
# -*- coding: utf-8 -*-

# *************************************************************
#  Copyright (c) Huoty - All rights reserved
#
#      Author: Huoty <sudohuoty@gmail.com>
#  CreateTime: 2016-12-29 13:45:20
# *************************************************************

def main():
    with open("test.log", 'w') as f:
        while 1:
            f.writelines(["hello world!\n"])
            f.flush()
            __import__("time").sleep(5)

# Script starts from here

if __name__ == "__main__":
    main()
